package project.service.impl;

import project.bean.RecordBean;
import project.dao.IRecordDAO;
import project.dao.impl.RecordDAOImpl;
import project.service.IRecordService;

import java.util.List;

public class RecordServiceImpl implements IRecordService {
    private IRecordDAO recordDAO = new RecordDAOImpl();
    /**
     * 通过用户账号获取交易记录
     *
     * @param userId 用户账号
     * @return 返回交易记录集合
     */
    @Override
    public List<RecordBean> getRecordsByUserId(String userId) {
        return recordDAO.getRecordsByUserId(userId);
    }
}
